Remove C99-isms. (#149967, Vincent Noel)
authorMatthias Clasen <mclasen@redhat.com>
Thu, 12 Aug 2004 14:17:30 +0000 (14:17 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 12 Aug 2004 14:17:30 +0000 (14:17 +0000)
2004-08-12  Matthias Clasen  <mclasen@redhat.com>

* pixops/pixops.c: Remove C99-isms.  (#149967, Vincent Noel)

gdk-pixbuf/ChangeLog
gdk-pixbuf/pixops/pixops.c

index 864acbb73d303663ed0af4e1a950f7c810d626de..d57d37283187f40b08dec1fdeb6075738863d9be 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-12  Matthias Clasen  <mclasen@redhat.com>
+
+       * pixops/pixops.c: Remove C99-isms.  (#149967, Vincent Noel)
+
 Wed Aug 11 22:56:55 2004  Matthias Clasen  <maclas@gmx.de>
 
        * abicheck.sh: Check all symbols.
index b235a4ac5d0932c8d403420ea05ede1d074cbe01..081191cd5d07b3bf722f5a7673353fcd6c82562a 100644 (file)
@@ -107,10 +107,12 @@ pixops_scale_nearest (guchar        *dest_buf,
 
   for (i = 0; i < (render_y1 - render_y0); i++)
     {
+      const guchar *src;
+      guchar       *dest;
       y_pos = ((i + render_y0) * y_step + y_step / 2) >> SCALE_SHIFT;
       y_pos = CLAMP (y_pos, 0, src_height - 1);
-      const guchar *src  = src_buf + y_pos * src_rowstride;
-      guchar       *dest = dest_buf + i * dest_rowstride;
+      src  = src_buf + y_pos * src_rowstride;
+      dest = dest_buf + i * dest_rowstride;
 
       x = render_x0 * x_step + x_step / 2;
 
@@ -133,7 +135,8 @@ pixops_scale_nearest (guchar        *dest_buf,
            }
          else
            {
-             INNER_LOOP(4, 4, guint32 *p32=(guint32*)dest;*p32=*((guint32*)p));
+             gint32 *p32;
+             INNER_LOOP(4, 4, p32=(guint32*)dest;*p32=*((guint32*)p));
            }
        }
     }
@@ -169,10 +172,12 @@ pixops_composite_nearest (guchar        *dest_buf,
 
   for (i = 0; i < (render_y1 - render_y0); i++)
     {
+      const guchar *src;
+      guchar       *dest;
       y_pos = ((i + render_y0) * y_step + y_step / 2) >> SCALE_SHIFT;
       y_pos = CLAMP (y_pos, 0, src_height - 1);
-      const guchar *src  = src_buf + y_pos * src_rowstride;
-      guchar       *dest = dest_buf + i * dest_rowstride;
+      src  = src_buf + y_pos * src_rowstride;
+      dest = dest_buf + i * dest_rowstride;
 
       x = render_x0 * x_step + x_step / 2;
       
@@ -259,10 +264,12 @@ pixops_composite_color_nearest (guchar        *dest_buf,
 
   for (i = 0; i < (render_y1 - render_y0); i++)
     {
+      const guchar *src;
+      guchar       *dest;
       y_pos = ((i + render_y0) * y_step + y_step / 2) >> SCALE_SHIFT;
       y_pos = CLAMP (y_pos, 0, src_height - 1);
-      const guchar *src  = src_buf + y_pos * src_rowstride;
-      guchar       *dest = dest_buf + i * dest_rowstride;
+      src  = src_buf + y_pos * src_rowstride;
+      dest = dest_buf + i * dest_rowstride;
 
       x = render_x0 * x_step + x_step / 2;